package com.sdyeda.readiot.scheduled;

import java.util.concurrent.ScheduledFuture;



/**
 * @author defly
 *  任务特性信息类，存储运行的任务特性信息
 */
public class ScheduledFutureHolder {

	private ScheduledFuture<?> scheduledFuture;

    private Class<? extends Runnable> runnableClass;

    private String type;
	private long delay;
    private String cron;

    public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}



    public String getCron() {
		return cron;
	}
    

	public void setCron(String cron) {
		this.cron = cron;
	}

	public long getDelay() {
		return delay;
	}

	public void setDelay(long delay) {
		this.delay = delay;
	}

	public ScheduledFuture<?> getScheduledFuture() {
        return scheduledFuture;
    }

    public void setScheduledFuture(ScheduledFuture<?> scheduledFuture) {
        this.scheduledFuture = scheduledFuture;
    }

    public Class<? extends Runnable> getRunnableClass() {
        return runnableClass;
    }

    public void setRunnableClass(Class<? extends Runnable> runnableClass) {
        this.runnableClass = runnableClass;
    }


    @Override
    public String toString() {
        return "ScheduledFutureHolder{" +
                "scheduledFuture=" + scheduledFuture +
                ", runnableClass=" + runnableClass +
                ", delay='" + delay + '\'' +
                '}';
    }

}
